package org.test.xfireClient.ad;

import java.net.MalformedURLException;
import java.net.URL;

import org.codehaus.xfire.client.Client;

import com.sun.org.apache.xerces.internal.dom.DocumentImpl;

public class KL {

	
	public static void main(String[] args) throws MalformedURLException, Exception {
		Client c = new Client(new URL("http://135.10.53.37:40011/services/complain?wsdl"));
		Object[] s = new Object[5];
		
//		Object[] s = new Object[1];
//		s[0] = new String("13765122836");
		Object[] results = c.invoke("queryComplainList", s);
		DocumentImpl doc = (DocumentImpl)results[0];
		System.out.println(doc.getNodeName());
		System.out.println(doc.getNodeValue());
		System.out.println(doc.getTextContent());
		System.out.println(doc.getChildNodes().item(0).getNodeName());
		System.out.println(doc.getChildNodes().item(0).getNodeValue());
		System.out.println(doc.getChildNodes().item(0).getTextContent());
		System.out.println(doc.getChildNodes().item(0).getBaseURI());
		
		
		
		
		
		
		
		
		
//		Client c = new Client(new URL("http://135.10.38.195:40055/services/WebService4EC?wsdl"));
//		Object[] s = new Object[1];
////		Object[] s = new Object[1];
////		s[0] = new String("13765122836");
//		Object[] results = c.invoke("saveTeleBillQuery", s);
//		DocumentImpl doc = (DocumentImpl)results[0];
//		System.out.println(doc.getNodeName());
//		System.out.println(doc.getNodeValue());
//		System.out.println(doc.getTextContent());
//		System.out.println(doc.getChildNodes().item(0).getNodeName());
//		System.out.println(doc.getChildNodes().item(0).getNodeValue());
//		System.out.println(doc.getChildNodes().item(0).getTextContent());
//		System.out.println(doc.getChildNodes().item(0).getBaseURI());
	}
}
